<template>
  <Box>
    <h2 slot="title" style="margin: 10px 15px">命案犯罪嫌疑人</h2>
    <div slot="box">
      <div>
        <a-descriptions :title="this.Midata.name" :column="5">
          <a-descriptions-item label="证件类型">
            {{ filterMultiDictText('document_type',this.Midata.documentType) }}
          </a-descriptions-item>
          <a-descriptions-item label="曾用名">
            {{ this.Midata.nameUsedBefore }}
          </a-descriptions-item>
          <a-descriptions-item label="国籍（地区）">
            {{ filterMultiDictText('nationality',this.Midata.nationality) }}
          </a-descriptions-item>
          <a-descriptions-item label="政治面貌">
            {{ filterMultiDictText('political_outlook',this.Midata.politicalOutlook) }}
          </a-descriptions-item>
          <a-descriptions-item label="职业类别">
            {{ filterMultiDictText('occupation_category',this.Midata.occupationalCategory) }}
            <!--              {{this.Midata.occupationalCategory}}-->
          </a-descriptions-item>
          <a-descriptions-item label="证件号码">
            {{ this.Midata.identificationNumber }}
          </a-descriptions-item>
          <a-descriptions-item label="性别">
            {{ filterMultiDictText('sex',this.Midata.sex) }}
            <!--              {{this.Midata.sex}}-->
          </a-descriptions-item>
          <a-descriptions-item label="籍贯">
            {{ this.Midata.nativePlace }}
          </a-descriptions-item>
          <a-descriptions-item label="学历">
            {{ filterMultiDictText('education',this.Midata.education) }}
            <!--              {{this.Midata.education}}-->
          </a-descriptions-item>
          <a-descriptions-item label="职业">
            {{ this.Midata.occupation }}
          </a-descriptions-item>
          <a-descriptions-item label="出生日期">
            {{ this.Midata.birthday }}
          </a-descriptions-item>
          <a-descriptions-item label="民族">
            {{ filterMultiDictText('nation',this.Midata.nation) }}
            <!--              {{this.Midata.nation}}-->
          </a-descriptions-item>
          <a-descriptions-item label="婚姻状况">
            {{ filterMultiDictText('marital_status',this.Midata.maritalStatus) }}
            <!--              {{this.Midata.maritalStatus}}-->
          </a-descriptions-item>
          <a-descriptions-item label="宗教信仰">
            {{ filterMultiDictText('religious_belief',this.Midata.religiousBelief) }}
            <!--              {{this.Midata.religiousBelief}}-->
          </a-descriptions-item>
          <a-descriptions-item label="服务处所">
            {{ this.Midata.servicePremises }}
          </a-descriptions-item>

          <a-descriptions-item label="户籍地" :span="2">
            {{ this.Midata.registeredResidence }}
          </a-descriptions-item>
          <a-descriptions-item label="是否为严重精神障碍患者" :span="3">
            <div v-if="this.Midata.patientsWithSevereMentalDisorders == '1'">是</div>
            <div v-else >否</div>
          </a-descriptions-item>
          <a-descriptions-item label="户籍门(楼)详址" :span="2">
            {{ this.Midata.detailedAddress }}
          </a-descriptions-item>
          <a-descriptions-item label="是否为未成年人" :span="3">
            <div v-if="this.Midata.underAge == '1'">是</div>
            <div v-else >否</div>
          </a-descriptions-item>
          <a-descriptions-item label="现住地" :span="2">
            {{ this.Midata.currentResidence }}
          </a-descriptions-item>
          <a-descriptions-item label="是否为青少年" :span="2">
            <div v-if="this.Midata.teenagers == '1'">是</div>
            <div v-else >否</div>
          </a-descriptions-item>
        </a-descriptions>
      </div>
      <div>
        <a-descriptions title="" :column="2">

        </a-descriptions>
      </div>
    </div>
  </Box>
</template>

<script>
import Box from '@/views/xlgc/Box/index'
import { getDictItemsFromCache } from '@api/api'
export default {
  name: 'Suspicion',
  components: { Box },
  props: {
    Midata: Object
  },
  methods: {
    filterMultiDictText(dictCode, text) {
      console.log(dictCode, text)
      if (!text && text !== 0) return
      let datas = getDictItemsFromCache(dictCode)
      // return this.$filterMultiDictText(datas, text)
      return this.$filterDictText(datas, text)
    }
  }
}
</script>

<style scoped>

</style>
